package com.wang.service.impl;

import com.wang.model.Order;
import com.wang.service.OrderService;

import java.util.UUID;

public class OrderServiceimpl implements OrderService {
    public Order createOrder(Integer uid, String goodsName, Float price, Integer amount) {
        System.out.println("====服务的提供者，创建订单的能力===");
        Order order = new Order();
        order.setOrderId(UUID.randomUUID().toString());
        order.setAmount(amount);
        order.setGoodsName(goodsName);
        order.setPrice(price);
        order.setUid(uid);
        return order;
    }
}
